from django.shortcuts import render
from django.http import HttpResponse
from django.shortcuts import redirect
from django.urls import reverse

def sentence(request):
    return HttpResponse("Hello,Django!")
def login(request,sum1,sum2):
    return HttpResponse(f"sum is {sum1+sum2}")

def post(request,string):
    return HttpResponse(f"Detail page for post: {string}")

def view1(request):
    return render(request,'index.html')

def sum(request):
    result = reverse('myapp:sentence')
    return redirect(result)